package com.tongda.core.service;

import java.util.List;
import java.util.Map;

import android.content.Context;

import com.tongda.core.repository.MessageDAO;
import com.tongda.core.vo.MessageVO;

public class MessageService extends BaseService {
	static Context context;

	public static synchronized void init(Context context) {
		MessageService.context = context;
	}

	public static List<MessageVO> getMessageList(Map<String, Object> params) {
		MessageDAO messageDAO = new MessageDAO();
		List<MessageVO> messages = messageDAO.getAllMessages();
		return messages;
	}

}
